package com.ssm.design.observer.event;

import org.springframework.context.ApplicationEvent;

public class OrderSuccessEvent extends ApplicationEvent {

    private Object object;

    public Object getObject() {
        return object;
    }

    public void setObject(Object object) {
        this.object = object;
    }

    /**
     * Create a new ApplicationEvent.
     *
     * @param source the object on which the event initially occurred (never {@code null})
     */
    public OrderSuccessEvent(Object source) {
        super(source);
    }

    public OrderSuccessEvent(Object source, Object object) {
        this(source);
        this.object = object;
    }

}